/*
 * @Author: daidai
 * @Date: 2021-12-09 10:47:56
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2022-04-27 16:32:31
 * @FilePath: \web-pc\src\api\index.js
 */

import request from '@/utils/request'

import {
    currentList,
    currentPage,
    currentSave,
    currentUpdate,
    currentDelete,
    currentSelect,
    currentSelectList,

    currentPOST,
    currentGET,
    currentApi

} from './modules'
import {
    GETNOBASE,
    GET
} from './api'


export {
    GETNOBASE,
    GET
}


export {
    currentApi,
    currentList,
    currentPage,
    currentSave,
    currentUpdate,
    currentDelete,
    currentSelect,
    currentSelectList,
    currentPOST,
    currentGET
}





export function screenRegulatoryOverview() {
    return request({
        url: '/business/screen/regulatory/overview',
        method: 'get'

    })
}

//   /business/screen/non/custody/code
//非羁押码
export function screennonCustodyCode() {
    return request({
        url: '/business/screen/non/custody/code',
        method: 'get'

    })
}


//离线提醒
///business/screen/offline/reminder/{limit}
export function screenOfflineReminder(limit) {
    return request({
        url: `business/screen/offline/reminder/${limit}`,
        method: 'get'
    })
}


//实时告警
///business/screen/real/time/alarm/{limit}
export function screenRealTimeAlarm(limit) {
    return request({
        url: `business/screen/real/time/alarm/${limit}`,
        method: 'get'
    })
}

//红码排名
///business/screen/red/code/ranking
export function screenRedCodeRanking(limit) {
    return request({
        url: `business/screen/red/code/ranking/${limit}`,
        method: 'get'
    })
}


///business/screen/online/statistics/{limit}
//在线统计
export function screenOnlineStatistics(limit) {
    return request({
        url: `business/screen/online/statistics/${limit}`,
        method: 'get'
    })
}


///business/screen/regulatory/distribution/map
export function distributionMap(data) {
  return request({
    url: '/business/screen/regulatory/distribution/map',
    method: 'post',
    data
  })
}

// 告警统计
// /business/screen/alarm/statistics
export function screenAlarmStatistics() {
    return request({
        url: 'business/screen/alarm/statistics/',
        method: 'get'
    })
}
